﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MethodWorx.CMS.Xml
{
    public interface IXmlElement
    {
        string Namespace { get; }
        string LocalName { get; }
        bool HasNamespace { get; }
        string InnerXml { get; }
        string OuterXml { get; }
        string Name { get; set; }
        bool HasAttribute(string name, string value, bool ignoreCase);
        bool HasAttribute(string name, bool ignoreCase);
        string GetAttributeValue(string name, string defaultIfMissing, bool ignoreCase);
        string GetAttributeValue(string name, string defaultIfMissing, bool ignoreCase, Dictionary<string, string> variables);
        void SetAttribute(string name, string value);
        void Append(string xml);
    }
}
